package com.zqs.grainmall.auth.controller;

import com.zqs.common.utils.HttpUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;

/**
 * @program: grain-mall
 * @description:
 * @author: Mr.Zhang
 * @create: 2020-11-17 21:30
 **/
//TODO 微博登陆第三方接口暂时不写
//@Controller
//public class OAuth2Controller {
//
//    @GetMapping("/oauth2.0/weibo/success")
//    public String weibo(@RequestParam("code") String code) throws Exception {
//        HashMap<String,String> map = new HashMap<>();
//
//        map.put("","")
//        HttpUtils.doPost("api.weibo.com","/oauth2/access_token","post",null,null,map);
//
//
//        return "redirect:http://127.0.0.1:10000";
//
//    }
//}
